<?php

namespace app\admin\validate;

use think\Validate;

class SPartners extends Validate
{
    protected $rule = [
        'partners_name'=>'require',
        'partners_attribute'=> 'require',
        'partners_category_id'=> 'require',
        'status'=>["require","in"=>"0,1"]
    ];

    protected $message = [
        'partners_name'=> '合作商名称必须',
        'partners_attribute'=> '合作商属性必须',
        'partners_category_id'=> '合作商类别必须',
        'status.require'=>'状态必须',
        'status.in'=>'状态数值错误',
    ];
}
